﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Core/MP.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="PhotoHsn.Web.Login1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        jQuery(document).ready(function () {
            // binds form submission and fields to the validation engine
            jQuery("#masterform").validationEngine();

        });

        /**
        *
        * @param {jqObject} the field where the validation applies
        * @param {Array[String]} validation rules for this field
        * @param {int} rule index
        * @param {Map} form options
        * @return an error string if validation failed
        */
        function checkHELLO(field, rules, i, options) {
            if (field.val() != "HELLO") {
                // this allows to use i18 for the error msgs
                return options.allrules.validate2fields.alertText;
            }
        }
        </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td class="fr">
                Kullanıcı Adı veya E-Posta
            </td>
            <td class="TDIkıNokta">
                :
            </td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server" class="validate[required] text-input" MaxLength="50"></asp:TextBox>
            </td>
            <td>
                   </td>
        </tr>
        <tr>
            <td class="fr">
                Şifre
            </td>
            <td class="TDIkıNokta">
                :
            </td>
            <td>
                <asp:TextBox ID="txtPass" runat="server" class="validate[required] text-input" MaxLength="50" TextMode="Password"></asp:TextBox>
            </td>
            <td>
                </td>
        </tr>
        <tr>
            <td>
                <asp:CheckBox ID="cBoxUserName" runat="server" Text="Beni hatırla" />
                <asp:CheckBox ID="cBoxPass" runat="server" Text="Şifremi hatırla" Checked="false" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="tr">
               
                 <asp:Button runat="server" ID="btnSender" Text="Gönder" CssClass="causesValidation"
                        OnClick="lnkBtnSubmit_Click" />
            </td>
        </tr>
        <tr>
            <td class="tr">
                <asp:LinkButton ID="lbRemember" runat="server" PostBackUrl="~/RemPass.aspx" CausesValidation="false">Kullanıcı bilgilerimi unuttum</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
